package example.controller;

import example.service.DeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DeleteController {

    @Autowired
    DeleteService ds;

    //删除字符串
    @RequestMapping("deletestring")
    public String deletestring(String firstKey){
        ds.deletestring(firstKey);
        return "#";
    }

    //删除文件
    @RequestMapping("deletefile")
    public String deletefile(String fileKey){
        ds.deletefile(fileKey);
        return "#";
    }

}
